﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>${page.SearchWords}#if(${page.PageIndex}>1)_第${page.PageIndex}页#end _${site.Name}</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
<link type="text/css" rel="Stylesheet" href="/${skin.Dir}/style.css" />
</head>
<body>
    <div id="page" style="width:100%;">
        <!-- start 头  -->
        <div class="header" style="width:100%; height:80px; ">
            <div class="l"  style="width:150px;height:50px; padding:20px 0 0 0;">
                <a href="/">
                    <img src="/${skin.Dir}/img/shbst.gif" alt="${site.Title}" style="width:150px; " /></a>
            </div>
            <div class="l" style="width:360px;">
            <div class="seachtop">
             
    </div>
            <div style="width:430px; height:40px;  " class="l">
             <input type="hidden" id="channelId" value="${page.ParentDir}" />
               <input type="text" name="searchContent" id="searchContent" size="30"  value="$!{page.SearchWords}"  /><select id="sltChannel" >
        <option value="">全站</option>
           #foreach($ChannelEntity in $cmn.ChannelList(0))
        <option value="${ChannelEntity.Dir}">${ChannelEntity.Title}</option>
        #end
       </select> 
    <input type="submit" name="sa" value="&#x641c;&#x7d22;" class='btn'  onclick="SiteSearch()" />
    
    </div>
            </div>
        </div>
        <div class="middle" style="margin:0 0 10px 0; width:100%;">
            <!-- 栏目循环 --->
            <div class="partArticle" style="width:100%;">
                <!-- start 左 --->
                <div class="l" style="width: 540px;">
                    <div class="articleList" style="width: 540px;">
                        <div class="content" style="width: 520px; border-top:1px solid #C5D8E6; margin-left:5px;">

                            <ul>
                                    #foreach($ListInfo in $cmn.SearchList(${page.Channel.Dir},10,${page.PageIndex},"${page.SearchWords}"))
     <li><a href="${ListInfo.Url}" target="_blank">${ListInfo.GetLengthTitle(60)}</a><div>${ListInfo.Summary} </div> </li>
                #end        
                     
                        
                    </ul>
                             <div class="clear"></div>
                            #parse("${skin.TemplateName}/include/searchPaging.htm")
                             <div class="clear"></div>
                              <a href="/search/${page.SearchWords}"> 找不到！！试一下全站搜索点击即可</a> 
                        </div>
                    </div>
                </div>
                 <div class="l" style="text-align:left; width:300px; padding-left:20px;" >  
                  <div class="rightLst">
                  <a href="/search/${page.SearchWords}"> 找不到！！试一下全站搜索点击即可</a> 
                    </div>
                 ${cmn.Advertise("Right_1").Advertise}
                 </br>

                  	<div class="rightLst">                         
                 <div class="titleA" style="width:280px;"> <span class="tt">相关搜索</span> </div> 
                   <div class="content " style="width:274px;">  
                      <ul >
                              
                                #foreach($ListInfo in $cmn.SearchList(10,1,"${page.SearchWords}"))
     <li><a href="${ListInfo.Url}" target="_blank">${ListInfo.SearchContent}</a> </li>
                #end        
                                </ul> 
                    </div>  
                    </div> 

		    <div class="rightLst">
                      $cmn.Advertise("Right_2").Advertise
                    </div>
                     <div class="rightLst">
                      $cmn.Advertise("Right_3").Advertise
                    </div>
                
                 
            </div>
        </div>
    </div>
     
                      <div class="footer">
         
            <div class="footnav">
                <div class="l">
                    &nbsp;</div>
                <div class="r">
                    &nbsp;</div>
                <div class="content">
                    网站简介 - 广告服务 - <a href="/sitemap" >网站地图</a> - <a href="http://m.ershenghuo.com" >手机百事通</a>
                        后台管理 - 联系方式</div>
            </div>
                 <script type="text/javascript" src="/js/jquery/jquery142_min.js"></script>
                    <script type="text/javascript" src="/templates/shbst/js/command.js"></script>
                    <br />
                    生活百事通网站主要帮用您解决在生活中遇到各种疑难杂症、常见问题、废物利用等问题，疑难杂症您可以去<a href="http://www.ershenghuo.com">生活小窍门</a>频道，生活小常识，生活小知识，生活小贴士您可以去<a href="http://www.ershenghuo.com">生活小常识</a>频道，<a href="http://www.ershenghuo.com">废物利用手工制作</a>您可以去<a href="http://www.ershenghuo.com">手工制作大全</a>频道。
            <br />Copyright &copy;  Powered by <span style="font-weight:bold;font-family:arial;">${site.Name}</span> 本站部分内容来自网上，如有侵权，请联系我们,本站内容只作参考.${site.ICP}   ${site.CountJs} 
        </div>
        </div>
  

    <script type="text/javascript">
        function SiteSearch() {
            var ch = "", t = "", s = "";
            if ($("#searchContent").val() == "站内全文智能搜索，快捷方便-_-") {
                alert("请填写查询内容");
                return;
            }
            if ($("#searchContent").val() != "") {
                s = encodeURIComponent($("#searchContent").val());
            }
            else {
                alert("请填写查询内容");
                return;
            }
            var channelPath = $("#sltChannel").val();
            if (channelPath != null && channelPath != "") {
                ch = channelPath + "/";
            }

            // alert("search.aspx?ch="+ch+"&s="+s+"&t="+t);
            location.href = "/search/" + ch + s;
            //alert($("#q1").val());
        }
        $(document).ready(function () {
        #if(${page.PageIndex}==1)updateSearchWord("$!{page.SearchWords}", "${page.ParentDir}");#end
            
            $("#sltChannel").val("${page.ParentDir}")
            $("#searchContent").bind({
                keydown: function (event) {
                    if (event.keyCode == 13) {

                        SiteSearch();
                    }
                },

                focus: function (event) {
                    if ($("#searchContent").val() == "全文智能搜索，快捷方便-_-") {
                        $("#searchContent").val("");
                    }
                },
                blur: function (event) {
                    if ($("#searchContent").val() == "") {
                        $("#searchContent").val("全文智能搜索，快捷方便-_-");
                    }
                }
            });
        }); 
         
    </script>
     <div style="display:none;">
   
     </div>
           
            
</body>
</html>
